﻿@using CommandLib
@using Resources
@model FindArtInfo.Models.PageArtLinkSearchModel
@{
    ViewBag.Title = "Search art links. Fine art, art news, auctions, auctioneers and more.";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm("Search", "ArtLinks", FormMethod.Post))
{
    @Html.AntiForgeryToken()
    <h1 class="underline">@Multi.PageArtLinksSearchTitle</h1>
    <table border="0" width="100%" id="table6" cellspacing="0" cellpadding="0">
        <tr> 
            <td width="260" align="left" valign="top"><h2>@Multi.PageArtLinksSearchCategories</h2>
                <ul>
                    @foreach(var item in Model.ListCategory)
                    {
                        <li>                                                        
                        <a href="~/@(Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE)))/ArtLinks/Result?cateId=@item.Id">@item.Category</a>
                        </li>
                    }          
                </ul>
            </td>
            <td width="1" align="left" valign="top" bgcolor="#F4FAED">&nbsp;</td>
            <td width="10" align="left" valign="top">&nbsp;</td>
            <td align="left" valign="top"><h2>@Multi.PageArtLinksSearchSearch</h2>                                
                <table border="0" id="table7" cellspacing="0" cellpadding="0" width="415">
                    <tr> 
                        <td height="28"><b>@Multi.PageArtLinksSearchKeyWord</b></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(m=>m.KeyWord, new { @size = "40", @value="*"})
                        </td>
                        <td rowspan="3" width="60" valign="bottom">
                            <input type="submit" value="@Multi.PageArtLinksSearchSubmit">
                        </td>
                    </tr>
                    <tr> 
                        <td height="28"><b>@Multi.PageArtLinksSearchCategory</b></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.DropDownListFor(m=>m.CateId, new SelectList(Model.ListCategory, "Id", "Category"), Multi.PageArtLinksSearchDdlCate)
                        </td>
                    </tr>
                    <tr> 
                        <td height="28"><b>@Multi.PageArtLinksSearchCountry</b></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>
                            @Html.DropDownListFor(m=>m.CountryId, new SelectList(Model.ListCountry, "ID", "CountryName"), Multi.PageArtLinksSearchDdlCountry)
                        </td>
                    </tr>
                </table>  
                @Html.Raw(Multi.PageArtLinksSearchHelp)                              
            </td>
        </tr>
        <tr> 
            <td align="left" valign="top">&nbsp;</td>
            <td align="left" valign="top" bgcolor="#F4FAED">&nbsp;</td>
            <td align="left" valign="top">&nbsp;</td>
            <td align="left" valign="top">&nbsp;</td>
        </tr>                            
    </table>
}
